package huu.eventLoop;

/**
 * @author huu
 * @create 2025-08-28-15:31
 */
public class TargetRunnable implements Runnable{

    private final Runnable task;
    private final int index;

    public TargetRunnable(int index, Runnable task)
    {
        this.index = index;
        this.task = task;
    }
    public int getIndex()
    {
        return index;
    }
    @Override
    public void run()
    {
        task.run();
    }
}
